{% extends "base.html" %}
{% load i18n  %}
{% block title %} {%trans 'Add Fields'%} {{sf_object.name}}{% endblock %}
{% block content-center%}
<div>{{sf_object.name}}</div>
<form method="post">{%csrf_token%}
<input name="sf_object" value="{{sf_obj.pk}}" />

<table>
<tr>
<td>select</td>
<td>name</td>
<td>label</td>
<td>custom</td>
<td>length</td>
<td>nillable</td>
<td>Picklist</td>
</tr>

  
{%for f in fields%}
<tr>
<td><input type="checkbox" 
 {%if f.local_field %} checked="checked"{%endif%} name="fid_{{f.pk}}">{{f.name}}</a></td>
<td>{{f.name}}</td>
<td>{{f.label}}</td>
<td>{{f.custom}}</td>
<td>{{f.length}}</a></td> 
<td>{{f.nillable}}</a></td>
<td>{{f.restrictedPicklist}}</a></td> 
</tr>
{%endfor%}
</table>

<input type="submit" value="{%trans 'Save'%}" />
  
</form>

{% endblock content-center%}
